# people/admin.py

from django.contrib import admin
from .models import ExcelFile, Person


@admin.register(ExcelFile)
class ExcelFileAdmin(admin.ModelAdmin):
    list_display = ('id', 'file_name', 'date', 'created_at', 'file_directory', 'is_deleted')
    search_fields = ('file_name',)
    list_filter = ('is_deleted', 'date', 'created_at')


@admin.register(Person)
class PersonAdmin(admin.ModelAdmin):
    list_display = ('serial_number', 'name', 'status', 'phone', 'device_id', 'excel_file')
    search_fields = ('name', 'phone', 'device_id')
    list_filter = ('status',)
